// /**
//  * Copyright © 2015 Magento. All rights reserved.
//  * See COPYING.txt for license details.
//  */

//
//  Common
//  _____________________________________________

& when (@media-common = true) {
    .pages {
        .lib-pager();
        .page {
            width: 26px;
            border-radius: 3px;
        }
        .action {
            border-radius: 3px;
            padding: 0 8px;
            width: 26px;
        }
        .item:last-child {
            margin-left: 0;
        }
    }
}

//
//  Mobile
//  _____________________________________________

.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__s) {
    .pages {
        & &-items {
            display: block;
            padding: 0 40px;
            position: relative;
            white-space: normal;
            z-index: 1;
        }
        &-item-previous {
            right: 0;
            position: absolute;
            top: 0;
            z-index: 1;
        }
        &-item-next {
            position: absolute;
            left: 0;
            top: 0;
            z-index: 1;
        }
    }
}
